package com.design.pattern.decorator;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author goujian
 * @description: 具体构件
 * @date 2022/3/15 6:00 下午
 */
@Data
@Slf4j
public class Train extends AbstractVehicle{
    @Override
    void basicFunction() {
        log.info("火车基础功能");
    }

    @Override
    void cost() {
        log.info("火车花费:{}元", 100);
    }
}
